#ifndef BASEPOSE_H
#define BASEPOSE_H

#include <QtQmlIntegration>
#include <QPointer>

#include "AnimSource.h"
#include "PoseNode.h"

//获取角色基本姿态

class BasePose:public PoseNode
{
    Q_OBJECT
    QML_ELEMENT
public:
    BasePose();


    Pose getEntry() override;
    AnimSource *source() const;
    void setSource(AnimSource *newSource);
signals:
    void sourceChanged();

private:
    QPointer<AnimSource> m_source;//动画源
    Q_PROPERTY(AnimSource *source READ source WRITE setSource NOTIFY sourceChanged FINAL)
};

#endif
